import http from '@/utils/request';

// 通过id查询
export const getById = (id: string) => {
	return http.request({
		method: 'GET',
		url: '/mall-order/app/orderrefund/' + id,
	});
};
// 获取退单列表
export const getPage = (params: object) => {
	return http.request({
		method: 'GET',
		url: '/mall-order/app/orderrefund/page',
		params,
	});
};
// 申请退款
export const addObj = (data: object) => {
	return http.request({
		method: 'POST',
		url: '/mall-order/app/orderrefund',
		data,
	});
};
